package com.futao.springbootlearn20220224.aware;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.context.ServletConfigAware;

import javax.servlet.ServletConfig;

/**
 * @author futao@gmail.com
 * @date 2022/3/9
 */
@Slf4j
@Component
public class ServletConfigAwareDemo implements ServletConfigAware {

    @Override
    public void setServletConfig(ServletConfig servletConfig) {
        log.info("获取到ServletConfig:{}", servletConfig);
    }
}
